enhance(bedrockagentcore_memory_strategy): add reflection_configuration for EPISODIC type#48758
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
|
✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible. |
…on for EPISODIC type Adds support for configuring reflection behavior in both built-in EPISODIC and CUSTOM EPISODIC_OVERRIDE memory strategies. For built-in EPISODIC strategies, a new optional reflection_configuration block allows users to customize where cross-episode reflection records are stored via namespace_templates. For CUSTOM strategies with EPISODIC_OVERRIDE type, a new optional reflection block inside configuration allows full customization of the reflection step including append_to_prompt, model_id, and namespace_templates. Closes hashicorp#47938
e60a424 to
c0652cd
Compare
|
Heads up that the current head (
The
The
rc.NamespaceTemplates = fwflex.FlattenFrameworkStringValueListOfString(ctx, episodicReflection.Value.NamespaceTemplates)Once those are in the package should build and the acceptance tests can actually run the new paths. Happy to test the reflection round-trip against real AWS once it compiles. Thanks! |
…on for EPISODIC type
d5979fc to
aa310fb
Compare
Description
Adds support for configuring reflection behavior in both built-in EPISODIC and CUSTOM EPISODIC_OVERRIDE memory strategies.
What this PR does
The
aws_bedrockagentcore_memory_strategyresource previously only exposed thetype = "EPISODIC"option without allowing users to configure the reflection step — the cross-episode insight generation that produces "patterns, successful strategies, failure modes, and lessons learned."This PR adds two new optional blocks:
1.
reflection_configurationblock (built-in EPISODIC)Allows users to customize where reflection records are stored via
namespace_templates. When omitted, defaults to using the episodic namespaces (preserving existing behavior).2.
reflectionblock insideconfiguration(CUSTOM EPISODIC_OVERRIDE)Allows full customization of the reflection step including
append_to_prompt,model_id, andnamespace_templates.Changes
reflection_configurationListNestedBlock (EPISODIC only),reflectionListNestedBlock insideconfiguration(EPISODIC_OVERRIDE only)reflectionConfigurationModelandreflectionOverrideModeltypesexpandToMemoryStrategyInputto use user-provided reflection config; updatedexpandToModifyStrategyConfigurationto handle reflection in EPISODIC_OVERRIDEcustomConfigurationModel.Flattenfor CUSTOM types; added manual reflection flattening in Read/Create for built-in EPISODICreflection_configurationonly allowed with EPISODIC;reflectiononly allowed inside CUSTOM EPISODIC_OVERRIDEAffected Resource(s)
aws_bedrockagentcore_memory_strategyReferences